package aop.hander;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MingxingDaili implements InvocationHandler {


    private Object target;

    public MingxingDaili() {
    }

    public MingxingDaili(Object target){
        this.target=target;
    }
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object res=null;
        System.out.println("经纪人商谈");
        res=method.invoke(target,args);
        System.out.println("结算费用");
        return res;
    }
}
